package com.gxuwz.stats.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxuwz.stats.entity.CreativeAchievement;

import java.util.List;

public interface CreativeAchievementService extends IService<CreativeAchievement> {

    // 修改返回类型为 IPage<CreativeAchievement>
    public IPage<CreativeAchievement> getCreativeAchievementList(IPage<CreativeAchievement>  page, QueryWrapper<CreativeAchievement> queryWrapper);
    /**
     * 分页查询并补充用户名
     */
    IPage<CreativeAchievement> page(Page<CreativeAchievement> page, QueryWrapper<CreativeAchievement> queryWrapper);
    /**
     * 条件查询列表并补充用户名
     */
    List<CreativeAchievement> list(QueryWrapper<CreativeAchievement> queryWrapper);
    /**
     * 自定义保存方法（带用户ID）
     */
    boolean save(CreativeAchievement creativeAchievement);
    /**
     * 根据ID删除
     */
    boolean removeById(Long id);
    /**
     * 批量删除
     */
    boolean removeByIds(List<Long> ids);
    /**
     * 根据ID查询
     */
    CreativeAchievement getById(Long id);
    /**
     * 根据ID更新
     */
    boolean updateById(CreativeAchievement creativeAchievement);
}
